﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NullCommander
{
    public partial class frmInputQuery : Form
    {
        public frmInputQuery()
        {
            InitializeComponent();
        }

        public static Boolean InputQuery(String caption, String subCaption, ref String text)
        {
            var form = new frmInputQuery();
            form.Text = caption;
            form.lblSubCaption.Text = subCaption;
            form.edtText.Text = text;
            if (form.ShowDialog() == DialogResult.OK)
            {
                text = form.edtText.Text;
                return true;
            }
            return false;
        }
    }
}
